/*
 * Copyright 2018 Zhongan.com All right reserved. This software is the
 * confidential and proprietary information of Zhongan.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Zhongan.com.
 */

package com.example.cloud.service;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 前置拦截
 *
 * @author tongyufu
 */
@RestController
@RequestMapping("/previous")
public class PreviousService {

    /**
     * hello
     *
     * @param request request
     * @return hello
     */
    @RequestMapping("hello")
    public String hello(HttpServletRequest request) {
        System.out.println("----" + request.getParameter("a"));
        return "Hello World";
    }

}
